package com.qf58.search.exception;

import com.qf58.search.pub.APICode;

/**
 * Description:
 * User: zhubo
 * Date: 2017-06-18
 * Time: 10:23
 */
public class ServiceException extends RuntimeException {

    private int code;
    private String msg;

    public ServiceException(APICode apiCode){
        super(apiCode.toString());
        this.code=apiCode.getCode();
        this.msg=apiCode.getMsg();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
